package com.gitee.hljdrl.wave.basis;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;

import androidx.annotation.ColorInt;

public interface WaveEvent {

    void init(Context context, AttributeSet attrs);

    void startAnimation();

    void stopAnimation();

    boolean isRunning();

    void onSizeChanged(int w, int h, int oldw, int oldh);

    void onDraw(Canvas canvas);

    void setWaveColor(@ColorInt int color);

}
